package hu.debrecen.adastra.card.repository;

import hu.debrecen.adastra.card.repository.domain.Account;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface AccountRepository extends CrudRepository<Account, Long> {

	@Query("select a from Account a where a.username = ?")
	Account findAccountByUsername(String username);

}
